xend: Do not overwrite xauthority and display with empty values
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 23 Apr 2009 09:09:16 +0000 (10:09 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 23 Apr 2009 09:09:16 +0000 (10:09 +0100)
commit00f3705554e7e38fe63a545350fe4ee158755f06
treed0abaa74b4d9dd168be1517c994494e9c1023ca6
parentda27f6d8b7134ce4c1fb7af186a2e11d49af6ac7
xend: Do not overwrite xauthority and display with empty values

Display and xauthority vars are read from vmConfig['platform'] first,
then they are read again from dev_info.
However if the user does not set those variable in the config file,
dev_info won't contain them, hence we are going to overwrite the
current significant values with null.
This patch fixes the problem setting display and xauthority to the
current values if dev_info does not contain them.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/python/xen/xend/image.py